<!DOCTYPE html>
<html lang="cmn-Hans" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>搜索结果</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}">
</head>
<body>
<div th:replace="list :: novelPanels"></div>
<script th:src="@{/layui/layui.js}"></script>
<script>
    layui.define(function () {
        const laypage = layui.laypage;
        laypage.render({
            elem: 'pages'
            ,count: [[${pageInfo.total}]]
            ,limit: [[${pageInfo.pageSize}]]
            ,curr: [[${pageInfo.pageNum}]]
            ,jump: function(obj, first){
                if(!first){
                    location.href='/search/[[${key}]]/[[${searchType}]]/[[${pageSize}]]/'+obj.curr;
                }
            }
        });
    });
</script>
</body>
</html>